﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace YellowMap
{
    public class CategoryModel: BaseViewModel
    {
        public CategoryModel()
        {
            SubCategories = new List<SubCate>();
        }

        public string Id { get; set; }
        public string Text { get; set; }
        public byte Order { get; set; }
        public string Icon { get; set; }
        public string Color { get; set; }

        public List<SubCate> SubCategories { get; set; }

        public class SubCate
        {
            public SubCate()
            {
                IsCheck = false;
            }
            public CategoryModel CateParent { get; set; }
            public string ImageSource { get; set; }
            public string Id { get; set; }
            public string Text { get; set; }
            public byte Order { get; set; }
            public string Type { get; set; }
            public string Keyword { get; set; }
            public bool IsCheck { get; set; }
        }
    }
}
